import http from '../core/request'
import { IAuth } from './user.type'

const auth = (params: IAuth.ReqParams) => {
  return http.post<IAuth.Result>('/v1/auth', params, {loading: false})
}

export default {
  auth
}
